package com.hngy.educationaladministration.mapper;

import com.hngy.educationaladministration.entity.CourseTable;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

/**
 * @Author: Deng JunHao
 * @Date: 2021-05-15
 * @Description:
 */
@Repository
public interface CourseDao {
    /**
     * get course info by sid
     *
     * @param sid
     * @return
     */
    @Select("select * from t_course where sid = #{sid}")
    ArrayList<CourseTable> getCourseInfoBySid(@Param("sid") Integer sid);
}
